#ifndef __History_H__
#define __History_H__

#include "stdint.h"
#include "stdbool.h"

typedef struct
{
  uint8_t hist_ory_hour[60];

}Hour_HistoryDataTypedef;





typedef struct
{
  uint8_t history_day[24];
  uint8_t history_week[7];
  uint8_t history_month[31];
  uint8_t history_year[12];
}DeviceHistoryDataTypedef;

typedef struct
{
  DeviceHistoryDataTypedef DeviceHistoryData[3];
}HistoryDataTypedef;


void History_Data_Statistics(void);

uint8_t SecondInterval(uint8_t nowsec,uint8_t agosec);
uint8_t MilsecInterval(uint8_t nowsec,uint8_t agosec);
void History_Data_set(void);
void History_Data_int(void);

extern HistoryDataTypedef HistoryData;
extern Hour_HistoryDataTypedef Hour_DeviceHistoryData[3];
#endif


